# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
{% for repo in local_repos %}
[{{ repo.name }}]
name=el-one-{{ repo.name }}
baseurl=http://{% for item in groups['yumrepo'] %}{{ hostvars[item]['ansible_host'] }}{% endfor %}/$releasever/{{ repo.name }}/
enabled = 1
gpgcheck = 0
{% endfor %}
